package com.example.demo.Service;

import com.example.demo.entity.Userinfo;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-08-14
 * Time:14:15
 */
@Controller
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public Userinfo login(String username,String password){
        return userMapper.login(username,password);
    }

    private int add(String username,String password){
        return userMapper.add(username,username);
    }
}
